package routers

import (
	"babydoge/controllers"
	"github.com/labstack/echo/v4"
)

func QueueRoute(e *echo.Group) error {
	var (
		queueController *controllers.QueueController
		err             error
	)

	if queueController, err = controllers.NewQueueController(); err != nil {
		return err
	}

	//e.GET("/:id", queueController.GetQueue)
	e.POST("", queueController.SaveQueue)
	e.GET("/all", queueController.GetQueues)
	e.POST("/delete", queueController.DeleteJob)
	e.POST("/again", queueController.AgainJob)

	return err
}
